Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release tag workflow fixes #1215

Merged
merged 3 commits into from
May 23, 2024
Merged

Release tag workflow fixes #1215

merged 3 commits into from
May 23, 2024

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented May 21, 2024

Description

When pushing the latest tag v3.1.0 tag for JIMM there were several issues evident.

  • We are still running charm workflows. The k8s charm has moved to a separate repo and the machine charm requires updates before we should carry on releasing it.
  • The git version string used in the snap names was incorrect, the issue is the same one that has cropped up previously where the tag used was 1 older than the most recent, see here.

This PR:

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

Test instructions

I've tested that the tag fix works by running the workflows in my fork.

Notes for code reviewers

NB! Before merging, there is one more issue where the publishing of the snaps is failing. It looks like a secret is missing (which can be fixed outside of this PR) but if the issue is more than that I'd like to fix it in this PR. We just need to confirm whether the secret is missing or not.

Due to the issues mentioned in the comments, when using the Github checkout action, when checking out via tag, the desired tag is converted to a lightweight tag even if it was originally an annotated tag. This causes git describe to break which also causes tools like snapcraft's versioning to break.
Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty for removing old crap too

@@ -15,6 +15,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: git fetch --tags --force origin # https://github.com/actions/checkout/issues/882 & https://github.com/actions/checkout/issues/290
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:(

@kian99 kian99 merged commit 9fa9f2a into canonical:v3 May 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants